package org.dei.perla.rockfall.gui.queryforge;

import javax.swing.BoxLayout;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

class AcquisitionTypePanel extends ReadableStatusPanel {

	private JCheckBox jCheckBox1;
	
	protected AcquisitionTypePanel(String title) {
		super(title);
	}

	@Override
	protected int getStatus() {
		if(jCheckBox1.isSelected())
			return 1;
		return 0;
	}

	@Override
	protected void setStatus(int stato) {
		jCheckBox1.setSelected(stato > 0);
	}

	@Override
	protected void setupInternalComponents() {
		
		//Primo blocco di scelte
		
		jCheckBox1 = new JCheckBox();
		JLabel jlabel3 = new JLabel("Abilita acquisizione con trigger");
		JPanel jpanel3 = new JPanel();
		jCheckBox1.setEnabled(true);
		BoxLayout layout3 = new BoxLayout(jpanel3, BoxLayout.X_AXIS);
		jpanel3.add(jlabel3);
		jpanel3.add(jCheckBox1);
		
		//aggiungo tutti i blocchi
		this.add(jpanel3);
		
	}

}
